import { _decorator, Component, Sprite, Color } from 'cc';
const { ccclass } = _decorator;

@ccclass('DebugDot')
export class DebugDot extends Component {
    // 提供一个公共方法，方便外部设置颜色
    public setColor(color: Color) {
        const sprite = this.getComponent(Sprite);
        if (sprite) {
            sprite.color = color;
        }
    }
}
